﻿export default [
  // 登录
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
        pad: false
      },
      // 院外登录
      {
        name: 'Pad登录',
        path: '/user/open/login',
        component: './user/pad/Login',
        pad: false
      },
      // 平板登录
      {
        name: 'Pad登录',
        path: '/user/pad/login',
        component: './user/pad/Login',
        pad: true
      }
    ],
  },

  // 欢迎页
  {
    keyid: '000',
    path: '/welcome',
    name: '生活缴费营销系统',
    icon: 'SmileOutlined',
    component: './welcome/Welcome',
    hideInMenu: true,
  },

  // 库存商品管理
  {
    path: '/stock-goods',
    name: '库存商品管理',
    icon: 'ShoppingOutlined',
    keyid: '200_1',
    pad: true,
    routes: [
      {
        keyid: '200',
        path: '/stock-goods/goods',
        name: '商品管理',
        component: './stock-goods/goods',
        pad: true
      },
      {
        keyid: '203,204',
        path: '/stock-goods/stock',
        name: '库存管理',
        component: './stock-goods/stock',
        pad: true
      },
      {
        path: '/stock-goods/stock/request',
        name: '库存申请',
        component: './stock-goods/stock/requestForm',
        hideInMenu: true,
        pad: true
      },
      {
        path: '/stock-goods/stock/adjust-stock',
        name: '调整库存',
        hideInMenu: true,
        component: './stock-goods/stock/Detail',
        pad: false
      },
      {
        keyid: '201',
        path: '/stock-goods/category',
        name: '品类管理',
        component: './stock-goods/category',
        pad: false
      },
      {
        keyid: '202',
        path: '/stock-goods/brand',
        name: '品牌管理',
        component: './stock-goods/brand',
        pad: false
      },
    ],
  },

  // 订单管理
  {
    path: '/order',
    name: '订单管理',
    icon: 'ProfileOutlined',
    keyid: '400_1',
    pad: true,
    routes: [
      {
        keyid: '400',
        name: '一次性订单',
        path: '/order/one-time-order',
        component: './order/onceOrder',
        pad: true
      },

      {
        path: '/order/one-time-order/doctor-bill',
        name: '一次性订单开单',
        hideInMenu: true,
        component: './order/onceOrder/DoctorBill',
        exact: true,
        pad: true
      },

      {
        keyid: '401',
        name: '计划订单',
        path: '/order/planOrder',
        component: './order/planOrder',
        pad: false
      },

      {
        path: '/order/planOrder/detail',
        name: '查看编辑(计划订单)',
        hideInMenu: true,
        component: './order/planOrder/Detail',
        exact: true,
        pad: false
      },

      {
        keyid: '402',
        name: '院内租赁',
        path: '/order/rent',
        component: './order/rent/Index',
        pad: false
      },

      {
        path: '/order/rent/settlement',
        name: '院内租赁结算',
        hideInMenu: true,
        component: './order/rent/RentSettle',
        exact: true,
        pad: false
      },

      {
        keyid: '403',
        name: '护工服务',
        path: '/order/worker',
        component: './order/worker/Index',
        pad: false
      },
      {
        path: '/order/worker/patient/archiveInfo',
        name: '患者服务档案',
        hideInMenu: true,
        component: './order/worker/Detail',
        exact: true,
        pad: false
      },

      {
        keyid: '404',
        name: '出院办结',
        path: '/order/discharged',
        component: './order/discharged',
        pad: false
      },
      {
        keyid: '405',
        name: '中创订单',
        path: '/order/zcOrder',
        component: './order/zcOrder',
        pad: true
      },
      {
        path: '/order/zc-order/zc-bill',
        name: '中创订单开单',
        hideInMenu: true,
        component: './order/zcOrder/ZcBill',
        exact: true,
        pad: true
      },
    ],
  },

  // 人力资源管理
  {
    path: '/human-resources',
    name: '人力资源管理',
    icon: 'TeamOutlined',
    keyid: '300_1',
    routes: [
      {
        keyid: '300',
        path: '/human-resources/worker',
        name: '护工管理',
        component: './human-resources/worker',
      },
      {
        path: '/human-resources/worker/service-record',
        hideInMenu: true,
        name: '服务记录',
        component: './human-resources/worker/ServiceRecord',
      },
    ],
  },

  // 商城管理
  {
    path: '/mall',
    name: '商城管理',
    icon: 'ShopOutlined',
    keyid: '500_1',
    routes: [
      {
        keyid: '500',
        path: '/mall/info',
        name: '商城信息管理',
        component: './mall/info',
      },
      {
        keyid: '501',
        path: '/mall/nav',
        name: '导航栏管理',
        component: './mall/nav',
      },
    ],
  },

  //  店铺管理
  {
    path: '/shop',
    name: '店铺管理',
    icon: 'ShopOutlined',
    keyid: '600_1',
    routes: [
      {
        keyid: '600',
        path: '/shop/board',
        name: '店铺看板',
        component: './shop/board',
      },
      {
        keyid: '601',
        path: '/shop/info',
        name: '店铺信息管理',
        component: './shop/info',
      },
      {
        keyid: '602',
        path: '/shop/goods',
        name: '店铺商品管理',
        component: './shop/goods',
      },
      {
        path: '/shop/goods/edit',
        name: '编辑商品信息',
        hideInMenu: true,
        component: './shop/goods/Detail',
      },
      {
        keyid: '603',
        path: '/shop/category',
        name: '分类管理',
        component: './shop/category',
      },
      {
        keyid: '604',
        path: '/shop/order',
        name: '订单管理',
        component: './shop/order',
      },
      {
        path: '/shop/order/detail',
        hideInMenu: true,
        name: '订单详情',
        component: './shop/order/Detail',
      },
      {
        keyid: '613',
        path: '/shop/after-sale',
        name: '售后管理',
        component: './shop/after-sale',
      },
      {
        path: '/shop/after-sale/return-goods',
        name: '售后单详情',
        hideInMenu: true,
        component: './shop/after-sale/ReturnGoods',
      },
      {
        path: '/shop/after-sale/refund',
        name: '售后单详情',
        hideInMenu: true,
        component: './shop/after-sale/Refund',
      },
      {
        keyid: '610',
        path: '/shop/evaluate',
        name: '商品评价管理',
        component: './shop/evaluate',
      },
      {
        keyid: '611',
        path: '/shop/consulting',
        name: '商品咨询管理',
        component: './shop/consulting',
      },
      {
        keyid: '612',
        path: '/shop/complaint',
        name: '订单投诉管理',
        component: './shop/complaint',
      },
      {
        path: '/shop/complaint/detail',
        name: '订单投诉详情',
        hideInMenu: true,
        component: './shop/complaint/Detail',
      },
    ],
  },

  // 业务报表
  {
    name: '业务报表',
    path: '/report',
    icon: 'DatabaseOutlined',
    keyid: '700_1',
    routes: [
      {
        keyid: '700',
        path: '/report/goods-sale-statistics',
        name: '商品销售统计',
        component: './report/goods-sale-statistics',
      },
      {
        path: '/report/goods-sale-statistics/detail',
        name: '商品销售明细',
        hideInMenu: true,
        component: './report/goods-sale-statistics/Detail',
      },
      {
        keyid: '701',
        path: '/report/order-sale-statistics',
        name: '订单销售统计',
        component: './report/order-sale-statistics',
      },
      {
        path: '/report/order-sale-statistics/detail',
        name: '订单销售明细',
        hideInMenu: true,
        component: './report/order-sale-statistics/Detail',
      },
      {
        keyid: '702',
        path: '/report/order-settle-statistics',
        name: '订单结算统计',
        component: './report/order-settle-statistics',
      },
      {
        keyid: '703',
        path: '/report/supplier-settle-statistics',
        name: '供应商结算统计',
        component: './report/supplier-settle-statistics',
      },
      {
        path: '/report/supplier-settle-statistics/detail',
        name: '供应商结算详情',
        hideInMenu: true,
        component: './report/supplier-settle-statistics/Detail',
      },
      // {
      //   path: '/report/inventory-change-statistics',
      //   name: '库存异动情况统计',
      //   component: './report/inventory-change-statistics'
      // },
      {
        keyid: '704',
        path: '/report/rent-statistics',
        name: '租赁情况统计',
        component: './report/rent-statistics',
      },
      // {
      //   path: '/report/worker-service-statistics',
      //   name: '护工服务情况统计',
      //   component: './report/worker-service-statistics'
      // },
      // {
      //   path: '/report/worker-service-statistics/detail',
      //   name: '护工服务情况详情',
      //   hideInMenu: true,
      //   component: './report/worker-service-statistics/Detail'
      // },
      {
        keyid: '705',
        path: '/report/performance-statistics',
        name: '绩效统计',
        component: './report/performance-statistics',
      },
      {
        keyid: '706',
        path: '/report/worker-pay-statistics',
        name: '护工缴费情况统计',
        component: './report/worker-pay-statistics',
      },
    ],
  },

  // 业务参数管理
  {
    name: '业务参数管理',
    path: '/params',
    icon: 'SettingOutlined',
    keyid: '800_1',
    routes: [
      {
        keyid: '800',
        path: '/params/frequency-codes',
        name: '医嘱频次编码管理',
        component: './params/frequency-codes',
      },
      {
        keyid: '801',
        path: '/params/mall-order',
        name: '商城订单参数设置',
        component: './params/mall-order',
      },
      {
        keyid: '802',
        path: '/params/refund',
        name: '商城退货退款原因设置',
        component: './params/refund',
      },
    ],
  },
  // 患者管理
  {
    name: '患者信息管理',
    path: '/patient',
    icon: 'IdcardOutlined',
    keyid: '900_1',
    pad: true,
    routes: [
      {
        name: '患者信息',
        path: '/patient/information',
        component: './patient/information',
        keyid: '900',
        pad: true
      },
      {
        name: '随访管理',
        path: '/patient/followUp',
        component: './patient/followUp',
        keyid: '901',
        pad: false
      },
      {
        name: '积分管理',
        path: '/patient/integral',
        component: './patient/integral',
        keyid: '902',
        pad: false
      },
      {
        name: '等级管理',
        path: '/patient/level',
        component: './patient/level',
        keyid: '903',
        pad: false
      }
    ],
  },
  // 角色管理
  {
    name: '角色权限管理',
    path: '/permissions',
    icon: 'UserOutlined',
    keyid: '001',
    routes: [
      {
        path: '/permissions/role',
        name: '角色管理',
        component: './permissions/role',
      },
      {
        path: '/permissions/account',
        name: '账号管理',
        component: './permissions/account',
      },
      {
        dept_level: '1',
        path: '/permissions/dept',
        name: '二级部门管理',
        component: './permissions/subDept'
      },
      {
        dept_level: '1',
        keyid: 'super',
        path: '/permissions/super',
        name: '超级管理员设置',
        component: './permissions/super',
      }
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },

  // 未匹配到路由 404
  {
    component: './error/404',
  },
];
